﻿using UnityEngine;
using System.Collections;

public class CodexPointItem : BaseFieldItem
{
	public override void OnObtained (BaseCharacter obtainer)
	{
		Debug.Log("CodexPoint got!");
		SoundManager.PlaySfx(SoundInfos.GetSfx("pointgain"), transform);
		GameScene.AddCodexPoint(1);
		((PlayerCharacter)GameScene.playerCharacter).Heal();
	}
}
